<% if user.enabled == true
      enabled = "Yes"
   else
      enabled = "No"
      end
%>
<tr>
  <td><%= user.id %></td>
  <td><%= user.username %></td>    
  <td><%= user.realname %></td>
  <td><%= user.email %></td>
  <td><%= user.mobile %></td>
  <td><%= enabled %></td>   
  <td><%= link_to 'Edit', :action => 'edit', :id => user %></td>
  <td><%= button_to 'Delete', { :action => 'destroy', :id => user, :confirm => "Are you sure you want to delete user #{user.username}?"}, :method => :delete %></td> 
</tr>  
